<?php $this->load->view('layout/header');?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <?php if($type == 'make_key'):?>
                <h3 class="page-title">手动操作管理 <small>生成密钥 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '生成密钥')); ?>
            <?php elseif($type == 'refund'):?>
                <h3 class="page-title">手动操作管理 <small>手动退票管理 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '手动退票')); ?>
            <?php elseif($type == 'allot'):?>
                <h3 class="page-title">手动操作管理 <small>手动分润管理 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '手动分润')); ?>
            <?php elseif($type == 'check'):?>
                <h3 class="page-title">手动操作管理 <small>手动检票管理 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '手动检票')); ?>
            <?php elseif($type == 'push'):?>
                <h3 class="page-title">手动操作管理 <small>手动核销推送管理 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '手动核销推送')); ?>
            <?php elseif($type == 'push_refund'):?>
                <h3 class="page-title">手动操作管理 <small>手动退票推送管理 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '手动退票推送')); ?>
            <?php elseif($type == 'tb_check'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动核销')); ?>
            <?php elseif($type == 'tb_beforeconsume'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动核销查询')); ?>
            <?php elseif($type == 'tb_send'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动发码')); ?>
            <?php elseif($type == 'tb_resend'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动重新发码')); ?>
            <?php elseif($type == 'tb_reverse'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动冲正')); ?>
            <?php elseif($type == 'tb_edittime'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动延期')); ?>
            <?php elseif($type == 'tb_resend_order'):?>
                <h3 class="page-title">手动操作管理 <small>淘宝接口相关操作 </small></h3>
                <?php echo breadcrumb(array('手动操作管理', '淘宝接口相关操作', '手动推送订单')); ?>
            <?php endif;?>
        </div>
    </div>
    <?php echo execute_alert_message() ?>
    <?php if($type == 'make_key'):?>
        <div class="alert alert-success">说明：用于着想订单接口(OTA对接着想接口需要密钥)</div>
    <?php elseif($type == 'refund'):?>
        <div class="alert alert-success">说明：手动退票用于淘宝过期订单退票、OTA部分退票或者OTA过期订单退票(查询到的订单数量全部退掉)</div>
    <?php elseif($type == 'allot'):?>
        <div class="alert alert-success">说明：手动分润用于着想平台已检票但未分润的订单</div>
    <?php elseif($type == 'check'):?>
        <div class="alert alert-success">说明：手动检票用于只核销着想平台上的订单(如淘宝过期订单无法核销)</div>
    <?php elseif($type == 'push'):?>
        <div class="alert alert-success">说明：手动推送用于将核销信息推送给去哪儿、将核销信息推送给OTA(OTA对接着想接口)</div>
    <?php elseif($type == 'push_return'):?>
        <div class="alert alert-success">说明：手动推送用于将退票审核信息推送给OTA(OTA对接着想接口)</div>
    <?php elseif($type == 'tb_check'):?>
        <div class="alert alert-success">说明：手动核销用于淘宝未过期订单(着想平台订单已核销但是淘宝订单未核销)</div>
    <?php elseif($type == 'tb_beforeconsume'):?>
        <div class="alert alert-success">说明：手动核销查询用于淘宝未过期订单(着想平台订单已核销但是淘宝订单未核销)</div>
    <?php elseif($type == 'tb_send'):?>
        <div class="alert alert-success">说明：手动发码用于淘宝未过期未退票订单(着想平台订单已生成但是未通知淘宝发货)</div>
    <?php elseif($type == 'tb_resend'):?>
        <div class="alert alert-success">说明：手动重新发码用于淘宝未过期未退票订单(着想平台订单已生成且已通知淘宝发货,但是因为一些原因,需要重新通知淘宝发货)</div>
    <?php elseif($type == 'tb_reverse'):?>
        <div class="alert alert-success">说明：手动重新发码用于淘宝未过期订单(着想平台订单已核销淘宝订单也核销了,但是因为一些原因,需要改淘宝订单为未核销的状态)</div>
    <?php elseif($type == 'tb_edittime'):?>
        <div class="alert alert-success">说明：手动延期用于可以延期的淘宝订单(如果淘宝订单延期成功,而着想没有延期成功,需手动延期订单)</div>
    <?php elseif($type == 'tb_resend_order'):?>
        <div class="alert alert-success">说明：手动推送订单用于淘宝未成功对接到着想的订单（着想订单未生成）</div>
    <?php endif;?>
    <div class="row-fluid">
        <div class="span12">
            <?php if($type == 'make_key'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>生成密钥</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/makekeyPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>分销商账号</label>
                                <div class="controls">
                                    <input type="text" name="user_name" class="m-wrap large required chrnum">
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'refund'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动退票</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/refundPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需退票的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">预订票数</label>
                                <div class="controls">
                                    <input type="text" name="number" class="m-wrap large number" value="0" readonly><span class="help-inline">[此处修改订单票数,0表示全退]</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'allot'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动分润</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/allotPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>已使用未分润的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'check'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动检票</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/checkPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>检票的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>检票票数</label>
                                <div class="controls">
                                    <input type="text" name="number" class="m-wrap large required number">
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'push'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动推送核销信息给OTA(对接着想接口的OTA、去哪儿、淘宝等)</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/pushPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需推送的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label">推送检票票数</label>
                                <div class="controls">
                                    <input type="text" name="number" class="m-wrap large number" value="">(需检票数量与推送核销数量不一致时填写)
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'push_refund'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动推送退票审核信息给OTA(对接着想接口的OTA,不包含去哪儿、淘宝等)</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/pushrefundPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需推送的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需推送的退票审核id</label>
                                <div class="controls">
                                    <input type="text" name="edit_id" class="m-wrap large required number"><span class="help-inline">填写着想退票审核表id,即edit_id</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_check'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动核销</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/tbcheckPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需核销的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需核销的数量</label>
                                <div class="controls">
                                    <input type="text" name="number" class="m-wrap large required number">
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>检票机id</label>
                                <div class="controls">
                                    <input type="text" name="mac_id" class="m-wrap large required number" value="50701"><span class="help-inline">默认50701</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_beforeconsume'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动核销查询</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/tbbeforeconsumePost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需核销查询的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>检票机id</label>
                                <div class="controls">
                                    <input type="text" name="mac_id" class="m-wrap large required number" value="50701"><span class="help-inline">默认50701</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_send'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动发码</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/tbsendPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需发码的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_resend'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动重新发码</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/tbresendPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需重新发码的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_reverse'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动冲正</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/tbreversePost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需冲正的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写着想订单号</span>
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label"><em>* </em>需冲正的数量</label>
                                <div class="controls">
                                    <input type="text" name="number" class="m-wrap large required number">
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>检票机id</label>
                                <div class="controls">
                                    <input type="text" name="mac_id" class="m-wrap large required number" value="50701"><span class="help-inline">默认50701</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_edittime'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动延期</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/tbedittimePost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需延期的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写淘宝订单号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>延期日期</label>
                                <div class="input-append date date-picker" style="margin-left: 20px;">
                                    <input type="text" class="m-wrap large m-ctrl-medium date-picker date" value="" size="16" name="plantime">
                                    <span class="add-on"><i class="icon-calendar"></i></span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php elseif($type == 'tb_resend_order'):?>
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>手动推送订单</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('manualoperation/order_show') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>需推送的订单号</label>
                                <div class="controls">
                                    <input type="text" name="order_id" class="m-wrap large required number"><span class="help-inline">填写淘宝订单号</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>